<form class="form-horizontal" enctype="multipart/form-data">
	<div {{bind-attr class=":alert alertType formTip::hide"}}><strong>{{formTip}}</strong></div>
	<div {{bind-attr class=":alert alertType saveResult::hide"}}><strong>{{saveResult}}</strong></div>
	<div class="container">
	
		<div class="control-group">
			<label class="control-label">产品型号</label>
			<div class="controls">
				{{input class="input span4" value=form.model readonly="readonly"}}
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">固件版本</label>
			<div class="controls">
				{{input class="input span4" value=form.version readonly="readonly"}}
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">上传文件</label>
			<div class="controls">
				<input id="File" type="file" name="upgradeFile" value="form.upgradeFile" tooltip="请选择要导入的升级文件" /> 
				<button type="button" {{action "upgradeFile"}}>升级文件</button>
			</div>
		</div>
		
		<div class="control-group">
			<div class="controls">
				<button type="button" {{action "keepConfig"}}>保留配置</button>
			</div>
		</div>
		
		<div class="control-group">
			<div class="controls">
				<p>升级前请仔细阅读以下注意事项：</p>
	     		<p>&nbsp;&nbsp;1.请选择与当前机器型号一致的固件。</p>
	   			<p>&nbsp;&nbsp;2.升级过程请勿切断路由器电源，否则将导致系统损坏而无法正常使用。</p>
	    		<p>&nbsp;&nbsp;3.固件校验通过后，会立即升级固件，升级结束后会自动重启。</p>
    		</div>
			<div class="controls">
				<button type="button" {{action "startUpgrade"}}>开始升级</button>
			</div>
		</div>
	
	</div>
</form>